<?php
session_start();
require_once('../config.php');
require('../smarty/smarty_config.php');


$smarty -> display('./admin/header.tpl');
if (empty($_SESSION['USER_ID'])) {
	$smarty -> display('./admin/admin-login.tpl');
	
}else {
	
	$smarty -> assign('user_name',$_SESSION['USER_NAME']);	
	$smarty -> display('./admin/index.tpl');
	
	
	
	// include the left of admin index part
	$smarty	-> display('./admin/admin-left.tpl');	
//	session_destroy();
//	$_SESSION = array();
}

$smarty -> display('./admin/foot.tpl');
?>